import http from "../common/http.js"

export default {
	/**
	 * 微信
	 */
	//获取进度条信息
	get_progress: (data,needLoading) => {
		return http.POST('/we-third-mini/get-progress', data,needLoading) 
	},
	
	//快速注册小程序
	fast_register_mini: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/fast-register-mini', data, needLoading) 
	},
	
	//检测名称是否可用（有次数限制）
	check_nickname: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/check-nickname', data, needLoading) 
	},
	
	//设置小程序名称
	set_mini_name: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/set-mini-name', data, needLoading) 
	},
	
	//设置头像
	set_head_img: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/set-head-img', data, needLoading) 
	},
	
	//设置分类
	set_categories: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/add-mini-category', data, needLoading) 
	},
	
	//删除分类
	del_categories: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/del-mini-category', data, needLoading) 
	},
	
	//设置简介
	set_signature: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/set-signature', data, needLoading) 
	},
	
	//更新小程序模板
	upgrade_template: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/upgrade-template', data, needLoading) 
	},
	
	//提交审核
	submit_audit: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/submit-audit', data, needLoading) 
	},
	
	//小程序上架
	release: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/release', data, needLoading) 
	},
	
	//支付进件
	we_pay: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/we-pay', data, needLoading) 
	},
	
	//绑定二维码
	set_qrcode_rules: (data,needLoading) => {
		return http.POSTJSON('/we-third-mini/set-qrcode-rules', data, needLoading) 
	},
	
	/**
	 * 支付宝
	 */
	//获取进度条信息
	getAliProgress: (data,needLoading) => {
		return http.POST('/ali-third-mini/get-progress', data, needLoading) 
	},
	
	//快速注册小程序
	FastRegisterMini: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/fast-register-mini', data, needLoading) 
	},
	
	//设置小程序基础信息
	SetMiniBaseInfo: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/set-mini-base-info', data, needLoading) 
	},
	
	//提交审核
	SubmitVersionAudit: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/submit-version-audit', data, needLoading) 
	},
	
	//上传代码/更新模板
	MiniUpVersion: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/mini-up-version', data, needLoading) 
	},
	
	//小程序上架
	UpMiniVersion: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/up-mini-version', data, needLoading) 
	},
	
	//签约当面付
	OpenAgentCreate: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/open-agent-create', data, needLoading) 
	},
	
	//申请接入手机号
	ApplyPhone: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/apply-phone', data, needLoading) 
	},
	
	//绑定小程序码
	BindMiniQrcode: (data,needLoading) => {
		return http.POSTJSON('/ali-third-mini/bind-mini-qrcode', data, needLoading) 
	},
	//获取参数
	GetParam: (data, needLoading) => {
		return http.POSTJSON('/ali-third-mini/get-params', data, needLoading)
	}
}